import request from '@/utils/request'

export function addZhiyuan(data) {
    return request({
        url: 'zhiyuan/addZhiyuan',
        method: 'post',
        data
    })
}

export function getZhiyuanBySchoolId(schoolId) {
    return request({
        url: 'zhiyuan/getZhiyuanBySchoolId/'+schoolId,
        method: 'get',
    })
}

export function getZhiyuanRecommend(data) {
    return request({
        url: 'zhiyuan/getZhiyuanRecommend/',
        method: 'post',
        data
    })
}


export function getZhiyuanByUserId() {
    return request({
        url: 'zhiyuan/getZhiyuanByUserId',
        method: 'get',
    })
}
export function deleteZhiyuanById(id) {
    return request({
        url: 'zhiyuan/deleteZhiyuan/'+id,
        method: 'post',
    })
}
